package pagefetch.view;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.JTextArea;
import javax.swing.JTextField;

import pagefetch.control.FetcherController;


public class FetcherPanel extends JPanel{
	
	private JButton fetchButton, fileChooserButton;
	private JTextField urlField, fileChooserField;
	
	
	
	public FetcherPanel(){
		super();
		add(	fetchButton = new JButton("Fetch site")	);
		add(	urlField = new JTextField("http://www.ijssalondesingel.nl")	);
		add(    fileChooserField = new JTextField("C:/documents and settings/Site Fetches/"));
		add(    fileChooserButton = new JButton("Bladeren"));
		
		new FetcherController(this);
		
		
		
		
	}

//Getters
	public JButton getFetchButton() {
		return fetchButton;
	}
	
	public JButton getFilechooserButton(){
		return fileChooserButton;
	}
	
	public String getFileChooserFieldText(){
		return fileChooserField.getText();
	}

	public JTextField getUrlField() {
		return urlField;		
	}
//Setters
	public void setFileChooserField(String locatie){
		fileChooserField.setText(locatie);
	}
}
